package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author hua
 * @since 2023-01-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_stock_pick_up_detail")
public class StockPickUpDetailDo extends Model<StockPickUpDetailDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * product 商品 material 耗材
     */
    @TableField("type")
    private String type;
    /**
     * 出库单id
     */
    @TableField("order_output_id")
    private Long orderOutputId;

    /**
     * 产品id
     */
    @TableField("pick_up_id")
    private Long pickUpId;

    /**
     * 产品id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 关联库位id
     */
    @TableField("stock_rack_id")
    private Long stockRackId;

    /**
     * 从该库位拣货多少个
     */
    @TableField("number")
    private Integer number;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
